import router from "./router";

var isLogin = false
router.beforeEach((to,from,next) => {
  if(!isLogin && to.path != '/error') {
    isLogin = true
    next({path:'/error'})
  }else {
    next()
  }
})